
# 通用部分
add_library(escape escape/escape.c ../demo1/utils/getLine.c)

###  可执行程序部分 ###
add_executable(binsearch binsearch/binsearch-main.c)

## 打印转义字符
add_executable(escape-main escape/escape-main.c)
target_link_libraries(escape-main escape)

# 模仿 grep
add_executable(grep grep/grep-main.c  ../demo1/utils/getLine.c)

# 字符串转数字
add_executable(atof atof/atof-main.c atof/atof.c ../demo1/utils/getLine.c)
target_link_libraries(atof escape)

# 逆波兰表示法的计算器
add_executable(calc calc/calc-main.c calc/stack.c calc/gettop.c atof/atof.c escape/escape.c calc/operator.c)

# 快速排序
add_executable(quick-sort quick-sort/quick-sort-main.c)

# 宏替换
add_executable(define-test definetest/define-test.c)